{if $full_page eq 1}
<!DOCTYPE HTML>
<html>
  <head>
    {include file='html_header.htm'}
    <script>
      function search_delivery()
      {
        if(check_form_empty('theForm'))
        {
          $.zalert.add('至少有一项输入不为空！',1)
        }
        else
        {
          $.zcontent.set('delivery_sn',$('#delivery_sn').val());
          $.zcontent.set('order_sn',$('#order_sn').val());
          $.zcontent.set('consignee',$('#consignee').val());
          search();
        }
        return false;
      }
    </script>
  </head>
  <body>
    <div id='container'>
      {/if}
      {include file='page_header.htm'}
      <section>
        {include file='menu_list.htm'}
        <div class="order_con" id="con_order_manage_2" style="display:none">
          <div class="order_pd">
            <div class="order order_t">
              <form name="theForm" method="" action="" class="order_search" onsubmit='search_delivery();return false;'>
                <table width="100%" border="0">
                  <tr>
                    <td>
                      <input type="text" name="delivery_sn" id='delivery_sn' class="inputBg" placeholder="请输入发货单流水号" {if $filter.delivery_sn}value='{$filter.delivery_sn}'{/if}/>
                    </td>
                  </tr>
                  <tr>
                    <td>
                      <input type="text" name="order_sn" id='order_sn' class="inputBg" placeholder="请输入订单号" {if $filter.order_sn}value='{$filter.order_sn}'{/if}//>
                    </td>
                  </tr>
                  <tr>
                    <td>
                      <input type="text" name="consignee" id='consignee' class="inputBg" placeholder="请输入收货人" {if $filter.consignee}value='{$filter.consignee}'{/if}//>
                    </td>
                  </tr>
                  <tr>
                    <td>
                      <input type="submit" name="" class="button2" value="查找"/>
                    </td>
                  </tr>
                </table>
              </form>
            </div>
          </div>
        </div>
        <div class="order_con order_con1" id="con_order_manage_1">
		{include file='store_menu.htm'}
          <div class="order_pd">
            <div class="order">
              <ul class="order_list delivery_list">
                {foreach from=$delivery_list item=delivery}
                <li>
                  <table width="100%" cellpadding="3" cellspacing="1" >
                    <tr>
                      <td align="left"><span>发货单流水号</span>{$delivery.delivery_sn}</td>
                    </tr>
                    <tr>
                      <td align="left"><span>订单号</span>{$delivery.order_sn}<div class="buy_name"><i>收货人</i>{$delivery.consignee}</div></td>
                    </tr>
                    <tr>
                      <td align="left"><span>下单时间</span>{$delivery.add_time}</td>
                    </tr>
                    <tr>
                      <td align="left"><span>发货时间</span>{$delivery.update_time}</td>
                    </tr>
                    <tr>
                      <td align="left"><span>发货状态</span>{$delivery.status_name}
                        <a href="order.php?act=remove_delivery&delivery_id={$delivery.delivery_id}" class="font1">移除</a>
                        <a href="order.php?act=delivery_info&delivery_id={$delivery.delivery_id}">查看</a></td>
                    </tr>
                  </table>
                </li>
                {foreachelse}
                <li><div class="no_order">没有找到任何发货单！</div></li>
                {/foreach}
              </ul>
            </div>
            {include file='page.htm'}
          </div>
        </div>
      </section>
      {include file='page_footer.htm'}
      {if $full_page eq 1}
    </div>
    {include file='static_div.htm'}
  </body>
</html>
{/if}